public class ChargingResult extends HCIModelAdapter
Java class represents a charging result that contains information about the result of a charging operation.
It can contain the following elements, which can be filtered individually:
Information about the charging processInformation about the charging contract (charging view of a provider contract) associated to the charging resultInformation about the chargeable item associated to the resultaccount operations generated by the processing of the charging operation.external accounts impacted by the operation.prepaid accounts impacted by the operation.charged items generated by the operation.response items generated by the operation.notifications generated by the operation.PurchaseOrderThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargingResult">
<xs:complexType>
<xs:sequence>
<xs:element ref="chargingProcessInfo" minOccurs="0" maxOccurs="1" />
<xs:element ref="chargingContractInfo" minOccurs="0" maxOccurs="1" />
<xs:element ref="chargeableItemInfo" minOccurs="0" maxOccurs="1" />
<xs:element ref="accountOperation" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="externalAccount" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="prepaidAccount" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="chargedItem" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="responseItem" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="notification" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
The XML tag name of this object: "chargingResult"
|
| Constructor and Description |
|---|
ChargingResult()
Builds an empty charging result object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
List<AccountOperation> |
getAccountOperations()
Gets the list of
account operations generated by the operation. |
ChargeableItemInfo |
getChargeableItemInfo()
Gets the
chargeable item information contained in this charging result. |
List<ChargedItem> |
getChargedItems()
Gets the list of
charged items generated by the operation. |
ChargingContractInfo |
getChargingContractInfo()
Gets the
charging contract information contained in this charging result. |
ChargingProcessInfo |
getChargingProcessInfo()
Gets the
charging process information contained in this charging result. |
List<ExternalAccountModel> |
getExternalAccounts()
Gets the list of
external accounts impacted by the operation. |
List<Notification> |
getNotifications()
Gets the list of
notifications generated by the operation. |
List<PrepaidAccountModel> |
getPrepaidAccounts()
Gets the list of
prepaid accounts impacted by the operation. |
List<ResponseItem> |
getResponseItems()
Gets the list of
response items generated by the operation. |
String |
getTagName()
Gets the XML tag name of the HCI model.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setChargeableItemInfo(ChargeableItemInfo chargeableItemInfo)
Sets the
chargeable item information contained in this charging result. |
void |
setChargingContractInfo(ChargingContractInfo chargingContractInfo)
Sets the
charging contract information contained in this charging result. |
void |
setChargingProcessInfo(ChargingProcessInfo chargingProcessInfo)
Sets the
charging process information contained in this charging result. |
marshalpublic static final String TAG_NAME
public ChargingProcessInfo getChargingProcessInfo()
charging process information contained in this charging result.charging process information contained in this charging resultpublic void setChargingProcessInfo(ChargingProcessInfo chargingProcessInfo)
charging process information contained in this charging result.chargingProcessInfo - The charging process information contained in this charging resultpublic ChargingContractInfo getChargingContractInfo()
charging contract information contained in this charging result.charging contract information contained in this charging resultpublic void setChargingContractInfo(ChargingContractInfo chargingContractInfo)
charging contract information contained in this charging result.chargingContractInfo - The charging contract information contained in this charging resultpublic ChargeableItemInfo getChargeableItemInfo()
chargeable item information contained in this charging result.chargeable item information contained in this charging resultpublic void setChargeableItemInfo(ChargeableItemInfo chargeableItemInfo)
chargeable item information contained in this charging result.chargeableItemInfo - The chargeable item information contained in this charging resultpublic List<AccountOperation> getAccountOperations()
account operations generated by the operation.account operations generated by the operationpublic List<ExternalAccountModel> getExternalAccounts()
external accounts impacted by the operation.external accounts impacted by the operationpublic List<PrepaidAccountModel> getPrepaidAccounts()
prepaid accounts impacted by the operation.prepaid accounts impacted by the operationpublic List<ChargedItem> getChargedItems()
charged items generated by the operation.charged items generated by the operationpublic List<ResponseItem> getResponseItems()
response items generated by the operation.response items generated by the operationpublic List<Notification> getNotifications()
notifications generated by the operation.notifications generated by the operationpublic String getTagName()
ITagNameProviderpublic void addCharacterData(String cData)
XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the child objects into